package com.robot.mvvm.ui.main.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.robot.base.model.ImageTextBean
import com.robot.mvvm.R

class ImageTextAdapter :
    BaseQuickAdapter<ImageTextBean, BaseViewHolder>(R.layout.app_item_work_bench) {
    override fun convert(holder: BaseViewHolder, item: ImageTextBean) {
        holder.setImageResource(R.id.item_iv_icon, item.imgResId)
            .setText(R.id.item_tv_name, item.text)
    }
}